#include "boundaryCenterVector.h"

using namespace std;

boundaryCenterVector::boundaryCenterVector(int _size,int _labelSuperpixel, char* _labelImage){
	this->size = _size;
	this->labelImage = _labelImage;
	this->labelSuperpixel = _labelSuperpixel;
}

void boundaryCenterVector::addValue(vector<uchar> _vector){
	this->vectorValue = _vector;
}

void boundaryCenterVector::setValue(int _index, uchar _value){
	this->vectorValue[_index] = _value;
}

vector<double> boundaryCenterVector::getVectorValue() {
	vector<double> temp;
	temp.reserve(vectorValue.size());
	for (int i = 0; i < vectorValue.size(); ++i) {
		temp.push_back((double)vectorValue.at(i));
	}
	return temp;
}